/**
 * 省-市联动
 * @param e
 */
function onNationChange1(e) {
    var nativepro = mini.getByName("nativepro");
    var nativecity = mini.getByName("nativecity");
    var nativecou = mini.getByName("nativecou");
    var nativevill = mini.getByName("nativevill");
    var id1 = nativepro.getValue();
    nativecity.setValue("");
    var url = "/search/code/native?1=1&codeType=2_1&pcodeId=" + id1;
    nativecity.setUrl(url);
    nativecity.select(0);
    var id2 = nativecity.getValue()
    var url2 = "/search/code/native?1=1&codeType=2_1&pcodeId=" + id2;
    nativecou.setUrl(url2);
    nativecou.select(0);
    var id3 = nativecou.getValue();
    var url3 = "/search/code/jiedao?1=1&pcodeId=" + id3;
    nativevill.setUrl(url3);
    nativevill.select(0);
}

/**
 * 市-县区联动
 * @param e
 */
function onNationChange2(e) {
    var nativecity = mini.getByName("nativecity");
    var nativecou = mini.getByName("nativecou");
    var nativevill = mini.getByName("nativevill");
    var id2 = nativecity.getValue();
    nativecou.setValue("");
    var url = "/search/code/native?1=1&codeType=2_1&pcodeId=" + id2;
    nativecou.setUrl(url);
    nativecou.select(0);
    var id3 = nativecou.getValue();
    var url3 = "/search/code/jiedao?1=1&pcodeId=" + id3;
    nativevill.setUrl(url3);
    nativevill.select(0);
}

/**
 * 县区街道联动
 * @param e
 */
function onNationChange3(e) {
    var nativecou = mini.getByName("nativecou");
    var nativevill = mini.getByName("nativevill");
    var id3 = nativecou.getValue();
    nativevill.setValue("");
    var url = "/search/code/jiedao?1=1&pcodeId=" + id3;
    nativevill.setUrl(url);
    nativevill.select(0);
}